//
//  CartoonCollectionCustomSectionHeanerView.m
//  Cartoon
//
//  Created by dllo on 15/11/7.
//  Copyright © 2015年 YSZ. All rights reserved.
//

#import "CartoonCollectionCustomSectionHeanerView.h"

@implementation CartoonCollectionCustomSectionHeanerView

- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithReuseIdentifier:reuseIdentifier];
    if (self) {
        self.myButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
        self.myLabel = [[UILabel alloc] init];
        [self.contentView addSubview:_myButton];
        [self.contentView addSubview:_myLabel];
        
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    self.myLabel.frame = CGRectMake(20, 0, self.bounds.size.width / 2 - 20, self.bounds.size.height);
    self.myButton.frame = CGRectMake(self.bounds.size.width - 100, 0, 100, self.bounds.size.height);
    
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
